package net.maku.infra.biz.controller.file.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

@Schema(description = "管理后台 - 上传文件 Request VO")
@Data
public class FileUploadReqVO {

    @Schema(description = "文件附件")
    @NotNull(message = "文件附件不能为空")
    private MultipartFile file;

    @Schema(description = "文件附件", example = "monitoryuanma.png")
    private String path;
    
    @Schema(description = "业务来源", example = "problem")
    private String source="other";
    
    //是否重新定义文件路径名称
    private boolean rename=true;
    

}
